import axios from 'axios';
import { req } from './axiosFun';

// 库存管理-获取仓库列表
// export const CkAdminList = (params) => { return req("get", "/api/CkAdmin", params) };
export const CkAdminList = (params) => { return req("post", "/api/CkAdmin/cd", params) };
// 库存管理-添加仓库
export const CkAdminSave = (params) => { return req("post", "/api/CkAdmin", params) };
// 库存管理-获取单个仓库
export const Get = (params) => { return req("get", "/api/CkAdmin/"+params, params) };
// 库存管理-根据Id编辑仓库
export const Put = (params) => { return req("put", "/api/CkAdmin/"+params, params) };
// 库存管理-删除仓库
export const Delete = (params) => { return req("delete", "/api/CkAdmin/"+params, params) };

// 库存管理-获取出库单列表
 export const OutOrderList = (params) => { return req("get", "/api/OutOrder", params) };
//export const OutOrderList = (params) => { return req("post", "/api/OutOrder/cd", params) };
// 库存管理-添加出库单
export const OutOrderSave = (params) => { return req("post", "/api/OutOrder", params) };
// 库存管理-获取单个出库单
export const OutOrderGet = (params) => { return req("get", "/api/OutOrder/"+params, params) };
// 库存管理-根据Id编辑出库单
export const OutOrderPut = (params) => { return req("put", "/api/OutOrder/"+params, params) };
// 库存管理-删除出库单
export const OutOrderDelete = (params) => { return req("delete", "/api/OutOrder/"+params, params) };

// 库存管理-获取入库单列表
 export const EnterOrderList = (params) => { return req("get", "/api/EnterOrder", params) };
//export const OutOrderList = (params) => { return req("post", "/api/OutOrder/cd", params) };
// 库存管理-添加入库单
export const EnterOrderSave = (params) => { return req("post", "/api/EnterOrder", params) };
// 库存管理-获取单个入库单
export const EnterOrderGet = (params) => { return req("get", "/api/EnterOrder/"+params, params) };
// 库存管理-根据Id编辑入库单
export const EnterOrderPut = (params) => { return req("put", "/api/EnterOrder/"+params, params) };
// 库存管理-删除入库单
export const EnterOrderDelete = (params) => { return req("delete", "/api/EnterOrder/"+params, params) };

// export const OrderRefund = (params) => { return req("post", "/api/Order/refund", params) };
// 库存管理-获取单个商品
//export const CinfoList = (params) => { return req("get", "/api/CommodityManagement/"+params, params) };
export const CinfoList=(params)=>{return req("get","/api/CommodityManagement")}
